<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="../favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
      <h1 class="title_color">销售费用未核销记录列表</h1>
    </div>
    <!-- 标题 -->
    <div class="form-inline">
    <form action="">
      <table class="row-margin-top tab-content table-bordered table-hover table text-center" border="1">
      <tr class="info">
        <th class="text-center">序号</th>
        <th class="text-center">原申请文件</th>
        <th class="text-center">明细编号</th>
        <th class="text-center">网点名称</th>
        <th class="text-center">费用明细</th>
        <th class="text-center">批复金额</th>
        <th class="text-center">已核销金额</th>
        <th class="text-center">未核销金额</th>
        <th class="text-center">不予核销金额</th>
        
        <th class="text-center">活动开始日期</th>
      </tr>
      {volist name="apply" id="vo"}
      <tr>
        <td>{$i}</td>
        <td>{if $vo.type_id==0}<a class="J_menuItem" href="{:url('ti_apply2/view',['id'=>$vo.apid])}">{elseif $vo.type_id==1}<a class="J_menuItem"  href="{:url('Tijinchang/view',['id'=>$vo.apid])}">{else/}<a class="J_menuItem"  href="{:url('ti_apply/apply_de',['aid'=>$vo.apid])}">{/if}{$vo.apsn}</a></td>
        <td>{$vo.apsn}_{$vo.apdsn}</td>
        <td>{$vo.net}</td>
        <td>{$vo.kemu3}</td>
        <td class="text-right ObjectNum pizhun"">{$vo.pizhun}</td>
         <td class="text-right ObjectNum yihe">{$vo.hx_yihexiao}</td>
        <td class="text-right ObjectNum weihe">{$vo.weihe}</td>
        <td class="text-right ObjectNum buhe">{$vo.hx_byhx}</td>
        
        <td>{$vo.start}</td>
      </tr>
      {/volist}
     
     <tfoot>
		  <tr class="trTotal text-right font-bold">
			<td colspan="5">合计</td>
			<td class="ObjectNum" id="pizhun">696641</td>
                <td class="ObjectNum" id="yihe">346570</td>
                <td class="ObjectNum" id="weihe">900</td>
                <td id="buhe" class="ObjectNum"></td>
			<td colspan="1"></td>
		  </tr>
     </tfoot>
   </table>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/common.js"></script> <script src="__STATIC__/layout/js/contabs_sub.js"></script>
     <script>
     var buhe=0;
      $(".buhe").each(function(){
              buhe+=parseFloat($(this).html())
            })
            $("#buhe").html(buhe.toFixed(2))

            var weihe=0;
            $(".weihe").each(function(){
              weihe+=parseFloat($(this).html())
            })
            $("#weihe").html(weihe.toFixed(2))

            var pizhun=0;
            $(".pizhun").each(function(){
              pizhun+=parseFloat($(this).html())
            })
            $("#pizhun").html(pizhun.toFixed(2))

            var yihe=0;
            $(".yihe").each(function(){
              yihe+=parseFloat($(this).html())
            })
            $("#yihe").html(yihe.toFixed(2))
        $(document).ready(function(){
            var $ObjectNum=$(".ObjectNum")
             toNum($ObjectNum);
        })
     </script>
</body>

</html>